<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='animate.min.css') }}">
    <title>证件照服务</title>
</head>
<header>
    <div class="hub__navbar" style="display: flex;justify-content: space-between;">
        <a class="logo" href="/" style="margin:68px 0 0 20px;font-size: 38px;"><img src="../static/images/logo.png"
                                                                                    height="88" width="88"
                                                                                    style="margin-right: 20px;" alt="">湖南涉外经济学院</a>
        <div style="display: flex;margin: 20px 20px -20px 0;">
            <a class="hub__nav__link" href="koutu" style="font-size: 26px !important;">抠图服务</a>
            <a class="hub__nav__link active" href="zhengjianzhao" style="font-size: 26px !important;">证件照服务</a>
            <a class="hub__nav__link" href="yanzhi" style="font-size: 26px !important;">颜值服务</a>
            <a class="hub__nav__link" href="ocr" style="font-size: 26px !important;">OCR服务</a>
            <a class="hub__nav__link" href="ernie_vilg" style="font-size: 26px !important;">图像生成服务</a>
        </div>
    </div>
</header>

<body>


<main>
    <div class="hub__container d-f x-center y-center" style="margin-top: -75px;">
        <div class="banner animate__animated animate__slideInUp">
            <p><img src="../static/images/logo1.png" height="168" width="168" alt=""></p>
            <h1 style="font-weight: bold;font-size: 108px;">证件照服务</h1>
            <h2 style="line-height: 1.5;">你可以上传照片，实现快速生成证件照</h2>
            <form name="form1" style="margin-top: 20px;" id="myform2" class="" action=""
                  enctype='multipart/form-data'
                  method='POST'>
                <div class="d-f x-center">
                    <select class="select mr-1" name="selected_color">
                        <option value="1">红色</option>
                        <option value="2">蓝色</option>
                        <option value="3">白色</option>
                    </select>
                    <select class="select mr-1" name="selected_algorithm">
                        <option value="A">算法A</option>

                        <option value="B">算法B</option>
                    </select>
                    <input type="text" class="inputzzj" name="describe" id="describe" placeholder="羽化设置" value=""
                           onclick="form1.action='/zhengjianzhao'">

                    <input onclick="form1.action='/zhengjianzhao'" type="file" id="file2" name="file2"
                           style="opacity: 0;position:  absolute;">

                    <div class="start mx-0" onclick="selectInput(2)">单张</div>
                    <input onclick="form1.action='/zhengjianzhao_p'" type="file" id="file" name="file"
                           style="opacity: 0;position:  absolute;" multiple
                           webkitdirectory>
                    <div class="start mx-0" onclick="selectInput(3)">批量</div>
                </div>

            </form>


            {% if wenjinmin %}

                <a style="color: #000;width: 160px !important;margin-top: 50px;height: 36px;display: inline-block"
                   href="/download/{{ wenjinmin }}">
                    <div style="width: 160px !important;height: 36px;line-height: 36px;text-align: center;font-size: 18px;border-radius: 18px;"
                         class="start">点击下载
                    </div>
                </a>
                {#

                {#                <div onclick="downloadDir('{{ lujin }}')">点击</div>#}
            {% else %}
            {% endif %}
        </div>

    </div>
    <div class="d-n" id="result">
        <div class="imgbox">
            <img class="result-img" src="{{ sourcefile }}" alt=""/>
            <a href="{{ filename }}" download="mypic.jpg">
                <img class="result-img" src="{{ filename }}" alt=""/>
            </a>
        </div>
    </div>
    <footer>
        <p class="animate__animated " style="font-size: 24px;">author: <strong>湖南涉外经济学院信息与机电工程学院</strong></p>
        <div id="gotop">
            <img src="../static/images/arrow-up.png" alt="">
        </div>
    </footer>
</main>
<script src="../static/index.js"></script>
{% extends "bootstrap/base.html" %}
{% block content %} {% endblock %}
{% block myjs %} {% endblock %}
</body>

</html>